Skip to content

fix build time_t for 32-bits#78

Open
andypost wants to merge 2 commits into
pgpool:masterfrom
andypost:63-fix-32-bits-build
Open

fix build time_t for 32-bits#78
andypost wants to merge 2 commits into
pgpool:masterfrom
andypost:63-fix-32-bits-build

Conversation

@andypost
Copy link
Copy Markdown

also added fix from #63 (comment)

@andypost andypost force-pushed the 63-fix-32-bits-build branch from c167636 to 2b897a4 Compare October 27, 2024 13:39
Comment thread src/parser/snprintf.c
#include "pool_parser.h"
#include "stringinfo.h"
#include "utils/palloc.h"
#include "postgresql/16/server/postgres_fe.h"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it brings warning and is not good approach

gcc -DHAVE_CONFIG_H -I. -I../../src/include  -D_GNU_SOURCE -I ../../src/include/parser -I /usr/include/postgresql   -Os -fstack-clash-protection -Wformat -Werror=format-security -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-format-truncation -Wno-stringop-truncation -fno-strict-aliasing -c -o snprintf.o snprintf.c
snprintf.c:79:9: warning: "MemSet" redefined
   79 | #define MemSet(start, val, len) \
      |         ^~~~~~
In file included from /usr/include/postgresql/16/server/postgres_fe.h:25,
                 from snprintf.c:50:
/usr/include/postgresql/16/server/c.h:1004:9: note: this is the location of the previous definition
 1004 | #define MemSet(start, val, len) \
      |         ^~~~~~
rm -f libsql-parser.a

@jirutka
Copy link
Copy Markdown

jirutka commented May 10, 2026

@tatsuo-ishii, we use this patch in the pgpool package in Alpine Linux for almost two years. Now I’m updating the package to 4.7 and it doesn’t apply anymore, so I have to rework it.

Can you please review it and merge it, or tell us why you don’t want to?

@tatsuo-ishii
Copy link
Copy Markdown
Collaborator

We don't accept GitHub pull requests. Can you please post patches to pgpool-hackers mailing list?
https://pgpool.net/mailing_lists/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants